* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: #E5EEF6;
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    overflow: hidden;
}

.form-box {
    background: #fff;
    margin-bottom: 10px;
}

.header {
    background: url(../img/banner.png) no-repeat center center;
    background-size: 100% 100%;
    width: 100%;
    height: 202px;
    color: white;
    text-align: center;
}

.header-title {
    width: 90%;
    margin: 0 auto;
    padding-top: 98px;
}

.header-title h1 {
    font-size: 12px;
    padding: 0 0 0 31px;
}

.header-title h1 span {
    font-weight: normal;
}


/* 温馨提示 */

.header-content {
    background: #FFFEE9;
    border: solid 1px #DA9C44;
    width: 96%;
    margin: 30px auto auto auto;
    border-radius: 6px;
    font-size: 14px;
    height: 40px;
    display: flex;
    align-items: center;
    color: #AE6216;
    padding: 0 6px;
}

.header-content-item-title {
    width: 100%;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tip-content {
    flex: 1;
    display: flex;
    align-items: center;
    overflow: hidden;
    white-space: nowrap;
    min-width: 0;
    /* 确保flex子项可以收缩 */
}

.tip-text {
    display: inline-block;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
    margin-left: 5px;
}

.more-link {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    margin-left: 10px;
    white-space: nowrap;
}

.header-content-item-title img {
    width: 27px;
    height: 26px;
    margin-right: 5px;
    vertical-align: -7px;
    flex-shrink: 0;
}

.form-section {
    /* 表单区域样式 */
}

.form-title {
    font-size: 18px;
    font-weight: bold;
    color: #265CE6;
    text-align: left;
    position: relative;
    padding: 15px 15px 15px 24px;
    border-bottom: 1px solid #f0f0f0;
}

.form-title::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 49%;
    transform: translateY(-50%);
    width: 4px;
    height: 18px;
    background: #1890ff;
    border-radius: 100px;
}

.form-group {
    margin-bottom: 10px;
    background: #fff;
    padding-bottom: 18px;
}

.form-row {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    border-bottom: 1px solid #f0f0f0;
    padding: 8px 15px;
}

.form-row:last-of-type {
    border-bottom: none;
}

.form-row .form-label {
    flex: 0 0 140px;
    margin-bottom: 0;
    font-size: 15px;
    color: #333;
    padding-right: 20px;
    font-weight: 500;
}

.form-group-box {
    background: #fff;
}

.form-row .form-input {
    flex: 1;
    border: none;
    padding: 8px 0;
    background: transparent;
    font-size: 15px;
    color: #333;
    text-align: right;
}

.form-row .form-input::placeholder {
    color: #999;
    font-size: 14px;
}

.form-row .form-input:focus {
    outline: none;
    box-shadow: none;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.form-label.required::after {
    content: "*";
    color: #e74c3c;
    margin-left: 4px;
    font-size: 12px;
}

.form-title::after {
    content: "*";
    color: #e74c3c;
    margin-left: 4px;
    font-size: 12px;
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.form-input[readonly] {
    background-color: #f8f9fa;
    color: #6c757d;
}

.photo-upload-container {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-top: 14px;
    padding: 0 15px;
}

.photo-upload {
    flex: 0 0 120px;
    height: 120px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.photo-upload img {
    width: 100%;
}

.photo-upload.has-photo {
    border-color: #52c41a;
    background: #f6ffed;
}

.photo-instructions {
    flex: 1;
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    display: -webkit-flex;
    align-self: center;
    max-width: 200px;
    font-weight: 500;
}

.photo-icon {
    font-size: 28px;
    color: #d9d9d9;
    margin-bottom: 8px;
    position: relative;
}

.photo-icon::after {
    content: '+';
    position: absolute;
    top: -5px;
    right: -8px;
    font-size: 16px;
    color: #d9d9d9;
    font-weight: bold;
}

.photo-text {
    color: #666;
    font-size: 12px;
    margin-bottom: 4px;
}

.photo-hint {
    color: #999;
    font-size: 12px;
}

.photo-preview {
    width: 100%;
    border-radius: 6px;
    object-fit: cover;
}

.submit-btn {
    width: 90%;
    margin: 15px 5%;
    background: #3958D4;
    color: white;
    border: none;
    padding: 16px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(24, 144, 255, 0.2);
}

.submit-btn:disabled {
    background: #d9d9d9;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.error-message {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
}

.success-message {
    color: #27ae60;
    font-size: 15px;
    margin-top: 5px;
}

.required-text {
    font-size: 15px;
    font-weight: bold;
    padding-left: 8px;
}


/* 自定义弹窗样式 */

.custom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    animation: fadeIn 0.3s ease-out;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 420px;
    min-width: 300px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    animation: slideIn 0.3s ease-out;
    overflow: hidden;
    position: relative;
    margin: 20px;
}

@keyframes slideIn {
    from {
        transform: translateY(-30px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.modal-body {
    padding: 20px;
    text-align: center;
}

.modal-body p {
    font-size: 16px;
    color: #333;
    line-height: 1.5;
    margin: 0;
}

.modal-footer {
    padding: 0 20px 20px 20px;
    text-align: center;
}

.modal-btn {
    background: linear-gradient(135deg, #1890ff, #40a9ff);
    color: white;
    border: none;
    padding: 8px 35px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.3);
}

.modal-btn:hover {
    background: linear-gradient(135deg, #40a9ff, #69c0ff);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(24, 144, 255, 0.4);
}

.modal-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(24, 144, 255, 0.3);
}


/* 更多提示弹窗样式 */

.more-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px 0;
    text-align: center;
}

.more-modal-content {
    text-align: left;
    line-height: 1.6;
    height: 240px;
    overflow: auto;
}

.more-modal-content p {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.more-modal-content ul {
    color: #666;
    font-size: 14px;
    padding-left: 20px;
    margin: 0;
}

.more-modal-content li {
    margin-bottom: 8px;
    line-height: 1.5;
}


/* 更多链接样式 */

.more-link {
    cursor: pointer;
    /* color: #1890ff; */
    transition: color 0.3s ease;
}

.more-link:hover {
    color: #40a9ff;
}